package com.hsgene.order.dto.console;

import com.hsgene.common.util.validation.FieldChecker;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 超期检测订单
 *
 * @author wangbing
 * @version 1.0
 * @date 2019/1/17 13:44
 * Copyright: Copyright (c) 2019
 */
public class PostponeTestingOrderDto implements Serializable {

    private static final long serialVersionUID = 3042019535502131977L;
    /**
     * 序号
     */
    private int number;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 订单状态
     */
    private Integer status;

    /**
     * 下单日期
     */
    private Date createDateTime;

    /**
     * 实收价格
     */
    private BigDecimal totalCharges;

    /**
     * 机构名称（多个机构英文逗号拼接）
     */
    private String agencyNames;

    /**
     * 套餐数量
     */
    private Integer packageCount;

    /**
     * 超期套餐个数
     */
    private Integer postponePackageCount;

    /**
     * 超期检测备注
     */
    private String postponeRemarks;

    public void check() {
        FieldChecker.checkEmpty(orderId, "订单id");
        FieldChecker.checkMaxLength(postponeRemarks, 300, "备注内容");
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateDateTime() {
        return createDateTime;
    }

    public void setCreateDateTime(Date createDateTime) {
        this.createDateTime = createDateTime;
    }

    public BigDecimal getTotalCharges() {
        return totalCharges;
    }

    public void setTotalCharges(BigDecimal totalCharges) {
        this.totalCharges = totalCharges;
    }

    public String getAgencyNames() {
        return agencyNames;
    }

    public void setAgencyNames(String agencyNames) {
        this.agencyNames = agencyNames;
    }

    public Integer getPackageCount() {
        return packageCount;
    }

    public void setPackageCount(Integer packageCount) {
        this.packageCount = packageCount;
    }

    public Integer getPostponePackageCount() {
        return postponePackageCount;
    }

    public void setPostponePackageCount(Integer postponePackageCount) {
        this.postponePackageCount = postponePackageCount;
    }

    public String getPostponeRemarks() {
        return postponeRemarks;
    }

    public void setPostponeRemarks(String postponeRemarks) {
        this.postponeRemarks = postponeRemarks;
    }
}
